/**
* 动态路由
*/
/* Layout */
import Layout from '@/layout'
const asyncRoutes = [
    {
        path: '/',
        component: Layout,
        hidden: true,
        children: [{
            path: 'dashboard',
            name: 'Dashboard',
            powerShow: true,
            component: () => import('@/views/dashboard'),
            meta: {
                title: '首页',
                icon: 'dashboard',
                // affix: true
            }
        }]
    },
    {
        path: '/sjcj',
        name: 'sjcj',
        component: Layout,
        meta: {
            title: '数据采集',
            icon: 'caiji'
        },
        //转发
        redirect: '/sjcj/rgbs',
        children: [
            {
                name: 'sjcj:ysbw:list',
                path: 'rgbs',
                component: () => import('@/views/sjcj/rgbs.vue'),
                meta: {
                    title: '人工补数',
                },
            }, {
                name: 'sjcj:ysbw:list',
                path: 'ysbw',
                component: () => import('@/views/sjcj/ysbw.vue'),
                meta: {
                    title: '原始报文',
                },
            },
        ]
    },
    {
        path: '/sjcl',
        name: 'sjcl',
        component: Layout,
        meta: {
            title: '数据处理',
            icon: 'baowen'
        },
        //转发
        redirect: '/sjcl/yczgl',
        children: [
            {
                name: 'sjcl:yczgl:list',
                path: 'yczgl',
                component: () => import('@/views/sjcl/yczgl.vue'),
                meta: {
                    title: '异常值过滤',
                },
            }

        ]
    },
    {
        path: '/sjcx',
        name: 'sjcx',
        component: Layout,
        meta: {
            title: '数据查询',
            icon: 'chaxun'
        },
        //转发
        redirect: '/sjcx/jsl',
        children: [
            {
                name: 'sjcx:jsl:list',
                path: 'jsl',
                component: () => import('@/views/sjcx/jsl.vue'),
                meta: {
                    title: '降水量',
                },
            },
            {
                name: 'sjcx:hdsqgcx:list',
                path: 'hdsqgcx',
                component: () => import('@/views/sjcx/hdsqgcx.vue'),
                meta: {
                    title: '河道水情(过程线)',
                },
            },
            {
                name: 'sjcx:sksqgcx:list',
                path: 'sksqgcx',
                component: () => import('@/views/sjcx/sksqgcx.vue'),
                meta: {
                    title: '水库水情(过程线)',
                },
            },
            {
                name: 'sjcx:hdfhzb:list',
                path: 'hdfhzb',
                component: () => import('@/views/sjcx/hdfhzb.vue'),
                meta: {
                    title: '河道防洪指标',
                },
            }, {
                name: 'sjcx:khxxzb:list',
                path: 'khxxzb',
                component: () => import('@/views/sjcx/khxxzb.vue'),
                meta: {
                    title: '库(湖)汛限指标',
                },
            }, {
                name: 'sjcx:khfhzb:list',
                path: 'khfhzb',
                component: () => import('@/views/sjcx/khfhzb.vue'),
                meta: {
                    title: '库(湖)防洪指标',
                },
            },

        ]
    },
    {
        path: '/txzs',
        name: 'txzs',
        component: Layout,
        meta: {
            title: '图形展示',
            icon: 'tuxing'
        },
        //转发
        redirect: '/txzs/swllgxqx',
        children: [
            {
                name: 'txzs:swllgxqx:list',
                path: 'swllgxqx',
                component: () => import('@/views/txzs/swllgxqx.vue'),
                meta: {
                    title: '水位流量关系曲线',
                },
            },
            {
                name: 'txzs:swkrgxqx:list',
                path: 'swkrgxqx',
                component: () => import('@/views/txzs/swkrgxqx.vue'),
                meta: {
                    title: '水位库容关系曲线',
                },
            },
            {
                name: 'txzs:dmt:list',
                path: 'dmt',
                component: () => import('@/views/txzs/dmt.vue'),
                meta: {
                    title: '断面图',
                },
            }

        ]
    },


    {
        path: '/xtsz',
        name: 'xtsz',
        component: Layout,
        meta: {
            title: '系统设置',
            icon: 'xitong'
        },
        //转发
        redirect: '/xtsz/czsz',
        children: [
            {
                name: 'xtsz:czsz:list',
                path: 'czsz',
                component: () => import('@/views/xtsz/czsz.vue'),
                meta: {
                    title: '测站设置',
                },
            },
            {
                name: 'xtsz:user:list',
                path: 'user',
                component: () => import('@/views/xtsz/user.vue'),
                meta: {
                    title: '用户管理',
                },
            },
            {
                name: 'xtsz:role:list',
                path: 'role',
                component: () => import('@/views/xtsz/role.vue'),
                meta: {
                    title: '角色管理',
                },
            },
            {
                name: 'xtsz:menu:list',
                path: 'menu',
                component: () => import('@/views/xtsz/menu.vue'),
                meta: {
                    title: '权限管理',
                },
            },
            {
                name: 'xtsz:zbrz:list',
                path: 'zbgl',
                component: () => import('@/views/xtsz/zbgl.vue'),
                meta: {
                    title: '值班日志',
                },
            },
        ]
    }
]

export default asyncRoutes